package cn.kgc.mushroomwebui.controller;

import cn.kgc.mushroomcommon.api.ManagerRemoteService;
import cn.kgc.mushroomcommon.pojo.Common;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
@RestController
@RequestMapping("/common/manager")
public class CommonController {
    @Resource
    ManagerRemoteService managerRemoteService;
    @RequestMapping("/selectCommon")
    public List<Common> selectCommon(@RequestParam("id")Integer id) {
        List<Common> commons = managerRemoteService.selectCommon(id);
        return commons;
    }
}
